package com.canton.service;

import com.canton.dao.entity.GrapeNode;
import com.canton.dao.entity.ImageNode;
import org.springframework.data.repository.query.Param;

import java.util.Collection;
import java.util.List;

public interface ImageService {
    ImageNode findByName(@Param("name") String name);

    List<ImageNode> findAll();

    List<ImageNode> findByNameLike(@Param("likes") String likes);
    //找关联的图片
    Collection<ImageNode> findAllLimitBy(String name,int limit);
}
